//
//  InputView.swift
//  SidebarMenu
//
//  Created by LiangXiaobin on 2017/2/3.
//  Copyright © 2017年 AppCoda. All rights reserved.
//

import UIKit

class InputView: UIView {

    var title:UILabel?
    var inputText:UITextView?
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        title = UILabel(frame:CGRect(x:0,y:0,width:frame.width,height:30))
        title?.backgroundColor = baseColor
        title?.textColor = UIColor.white
        title?.font = UIFont.systemFont(ofSize: 18)
        self.addSubview(title!)
        
        inputText = UITextView(frame:CGRect(x:2,y:30 + 10,width:self.frame.width - 4,height:self.frame.height - 40))
        inputText?.backgroundColor = UIColor.lightGray
        self.addSubview(inputText!)
        
        
        
        
        
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }

}
